Computer Science Lesson Plan
Class: 7 - Lesson: 10 Functions (Predefined and User Defined)
One or two classes (teacher's decision).
Computer, Scratch 3.0, internet connection (Code.org).
Students should know:
1. Create a Scratch program to make a sprite walk. After the exercise, explain that this program uses the predefined (built-in) functions in Scratch.
1. There are several pumpkins in each patch. Look carefully at the function definitions below to work out how to use each one.
1. Write an improved program to find the prime numbers from 2 to N. Get the value of N from the user, and store the prime numbers in a list as you find them. Use a user-defined block to check whether a number is prime and to insert it into the list.
POINTS TO PONDER: Do you know about modules?